package com.mzkj.wanjulaile.mobile.api.modules.shoppingCart.service;


import com.mzkj.wanjulaile.mobile.api.modules.appointment.entity.AppointmentCollection;
import com.mzkj.wanjulaile.mobile.api.modules.shoppingCart.entity.ShoppingCart;

import java.util.List;


public interface ShoppingCartService{

	 ShoppingCart get(String id);

	 List<ShoppingCart> findList(ShoppingCart shoppingCart);

	 void setToyDetail(ShoppingCart cart);

	 void save(ShoppingCart shoppingCart);
	
	 void delete(ShoppingCart shoppingCart);

	 boolean batchDelete(List<String> toyIds, String accountId);

	 boolean batchDeleteByIds(List<String> ids);

	 boolean deleteByAccountId(Long accountId);

	 List<ShoppingCart> findListByIds(List<String> ids);

	 ShoppingCart update(ShoppingCart shoppingCart);

	 List<ShoppingCart> findListByAccountId(ShoppingCart shoppingCart);

	 List<ShoppingCart> getByAcIdToyId(ShoppingCart shoppingCart);

	 List<ShoppingCart> findList2ByAccountId(String accountId);

	ShoppingCart  get(ShoppingCart shoppingCart);

	void delBoth(ShoppingCart shoppingCart,AppointmentCollection appointmentCollection);
}